using System;
using System.Collections.Generic;
using System.Text;
using DataAccessLayer;
using EntityLayer;
using DataLayer;
using System.Data;
using InfraStructureLayer;

namespace BusinessLayer
{
    public class busParameters : BusinessBase
    {
        public busParameters()
            : base()
        {
        }
        #region  Code Factory Generated Methods

        
        public void UpdateParametersByParameterId(entParameters parEntParameters)
        {

            datParameters insDatParameters = null;
            DbConnector insDbConnector = new DbConnector();
            try
            {
                insDatParameters = new datParameters();
                insDatParameters.UpdateParametersByParameterId(parEntParameters, insDbConnector);
            }
            catch (SFException ex)
            {
                this.ErrorMessage = ex.Message;
            }
        }
        public DataTable SelectParameters()
        {
            try
            {
                datParameters insDatParameters = new datParameters();
                DbConnector insDbConnector = new DbConnector();
                return insDatParameters.SelectParameters(insDbConnector);
            }
            catch (SFException ex)
            {
                this.ErrorMessage = ex.Message;
            }
            return null;
        }
        public void SelectParametersByParameterId(entParameters parEntParameters)
        {
            try
            {
                datParameters insDatParameters = new datParameters();
                DbConnector insDbConnector = new DbConnector();
                insDatParameters.SelectParametersByParameterId(parEntParameters, insDbConnector);
            }
            catch (SFException ex)
            {
                this.ErrorMessage = ex.Message;
            }
        }
        
        #endregion
    }
}